home *** CD-ROM | disk | FTP | other *** search
- /*PLF Sat 05-06-1989 02:37:05
-
- com.h is so different in the two os's that I have decided to make
- two speparte include files-- com_dos.h and com_os2.h. This file
- defines some common stuff, then decides which of those two to
- suck in.
-
- */
-
-
- #ifdef NEVER
- #define COM1 0
- #define COM2 1
- #define COM1_BASE 0x3f8
- #define COM2_BASE 0x2f8
- #define COM1_IMR 0x10
- #define COM2_IMR 0x08
- #define PASS_THRU_PORT 0x238
- #define BAUD_150 0x020
- #define BAUD_600 0x060
- #define DELTA_CTS 0x01
- #define DELTA_DSR 0x02
- #define TRAIL_EDGE_RI 0x04
- #define DELTA_CD 0x08
- #define CTS 0x10 /* Bits for the Modem Status Register... */
- #define DSR 0x20
- #define RI 0x40
- #define DCD 0x80 /* <--- some cheap modems use 0x20 for this */
- #endif
-
-
-
- #define BITS_7 0x02
- #define BITS_8 0x03
- #define STOP_1 0x00
- #define STOP_2 0x04
- #define ODD_PARITY 0x08
- #define EVEN_PARITY 0x18
- #define NO_PARITY 0x00
- #define BAUD_300 0x040
- #define BAUD_1200 0x080
- #define BAUD_2400 0x0A0
- #define BAUD_4800 0x0C0
- #define BAUD_9600 0x0E0
- #define BAUD_19200 0x000
- #define BAUD_38400 0x020
-
- /* Bit definitions for the Line Status Register */
-
- #define DATA_READY 0x0100
- #define OVERRUN_ERR 0x0200
- #define PARITY_ERR 0x0400
- #define FRAMING_ERR 0x0800
- #define BREAK_INT 0x1000
- #define TX_HOLD_EMPTY 0x2000
- #define TX_SHIFT_EMPTY 0x4000
-
- /* Bit definitions for the driver flags */
-
- #define USE_XON 0x01
- #define USE_CTS 0x02
- #define USE_DSR 0x04
- #define OTHER_XON 0x08
-
- #define BRK 0x01
- #define MDM 0x02
-
- struct CONTROL
- {
- int carrier_mask;
- int handshake_mask;
- };
-
- struct baud_str {
- char *str;
- unsigned rate;
- };
-
- extern struct pointers ctl;
-
-
- struct parse_list {
- int p_length;
- char *p_string;
- };
-
- struct secure {
- char *rq_OKFile;
- char *rq_FILES;
- char *rq_About;
- char *rq_Template;
- char *sc_Inbound;
- int rq_Limit;
- };
-
-
- #ifndef OS_2
- #include "com_dos.h"
- #else
- #include "com_os2.h"
- #endif
-